package com.example.administrator.ddmsdemo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class MainActivity extends AppCompatActivity {
    private static final String hellotag = "hello";
    private Button bt;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        bt = (Button)findViewById(R.id.button1);
        bt.setOnClickListener(new Button.OnClickListener(){
            @Override
                    public void onClick(View v){
                Log.v(MainActivity.hellotag, "This is Verbose.");
                Log.d(MainActivity.hellotag, "This is Bug.");
                Log.i(MainActivity.hellotag, "This is Information.");
                Log.w(MainActivity.hellotag, "This is Warning.");
                Log.e(MainActivity.hellotag, "This is Error.");




            }

        });









    }
}
